package com.business.user.service.impl;


import java.util.List;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.baomidou.mybatisplus.plugins.Page;
import com.business.common.utils.PageUtils;
import com.business.common.dto.R;

import com.business.user.entity.MembershipPackage;
import com.business.user.mapper.MembershipPackageMapper;
import com.business.user.service.MembershipPackageService;



/**
 * 会员套餐表:业务接口实现类
 * @author chenjiehong
 * @date 2019-12-01 22:14:08
 * @since 1.0
 */
@Service
@Transactional
public class MembershipPackageServiceImpl implements MembershipPackageService {
    
    @Autowired
    private MembershipPackageMapper membershipPackageMapper;

    @Override
    public  MembershipPackage query(Integer id){
        MembershipPackage membershipPackage = membershipPackageMapper.selectById(id);
        return membershipPackage;
    }
    
    @Override
    public List<MembershipPackage> queryList(){
        List<MembershipPackage> result = membershipPackageMapper.selectList(new EntityWrapper<>());
        return result;
    }
    

}